package com.tanger.permission.entity.vo;

import com.google.common.base.MoreObjects;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;


/**
 * @Description 权限按钮
 * @Author Hchenbin
 * @Date 2022/6/27 12:12
 * @Version 1.0
 */
@Data
@ApiModel(value = "PermissionButtonVo",description = "权限按钮")
public class PermissionButtonVo implements Serializable {

	private static final long serialVersionUID = 1L;
	@ApiModelProperty(value = "ID")
	private Long id;
	@ApiModelProperty(value = "权限ID")
	private Long menuId;//即permissionId
	@ApiModelProperty(value = "按钮ID")
	private Long buttonId;
	@ApiModelProperty(value = "按钮编码")
	private String buttonCode;
	@ApiModelProperty(value = "按钮名称")
	private Integer buttonName;

	@Override
	public String toString() {
		return MoreObjects.toStringHelper(this)
			.add("id", id)
			.add("menuId", menuId)
			.add("buttonId", buttonId)
			.add("buttonCode", buttonCode)
			.add("buttonName", buttonName)
			.toString();
	}
}
